<?php

/*

  Action – Prize	$0*

  +1 Action
  Gain a Gold, putting it on top of your deck.

 */

class BagOfGold extends Card implements iAction, iPrize {

    public function __construct() {
        parent::__construct("Bag Of Gold", 0);
        $this->undoPlay = false;
        $this->undoBuy = false;
    }

    public function getDescription() {
        return array(
            "+1 Action",
            "Gain a Gold, putting it on top of your deck.");
    }
    
    public function play(Game $game, $isRealCard) {
        $game->addActions(1);
        $gold = $game->moveCardFromPileToPile("Gold", BoardCards, DrawPile);
         ScreenDisplay::addScreenMessage($game, true, "get +1 action  and put " . nicePrint($gold). " on top of your deck", "get +1 action and puts ".ScreenDisplay::$LMSG." on top of his deck");

        return true;
    }

}

?>